home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / exec / funxor.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  471 b   |  24 lines

  1. /*
  2. \funcref{fun\_xor}{void fun\_xor ()}
  3.     {}
  4.     {}
  5.     {pop(), push()}
  6.     {}
  7.     {funxor.c}
  8.     {
  9.         This function pops two variables and pushes the bitwise xor-ed result 
  10.         of the {\em vu.intval} fields of these variables.  The resulting 
  11.         pushed variable is of type {\em e\_int}.  } */ 
  12.  
  13. #include "icm-exec.h"
  14.  
  15. void fun_xor ()
  16. {
  17.     VAR_
  18.         tmp;
  19.  
  20.     tmp.type = e_int;
  21.     tmp.vu.intval = pop().vu.intval ^ pop().vu.intval;
  22.     push (tmp);
  23. }
  24.